//
//  LoginTextField.m
//  SportSocial
//
//  Created by yull on 14/11/27.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import "LoginTextField.h"

@implementation LoginTextField

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.textColor = [UIColor whiteColor];
        self.font = [UIFont boldSystemFontOfSize:18.0f];
        self.tintColor = [UIColor whiteColor];
    }
    return self;
}

- (CGRect)leftViewRectForBounds:(CGRect)bounds
{
    return CGRectMake(0, (CGRectGetHeight(bounds) - 24)/2, 24, 24);
}

- (CGRect)editingRectForBounds:(CGRect)bounds
{
    return CGRectMake(44, 0, CGRectGetWidth(bounds) - 44, CGRectGetHeight(bounds));
}

- (CGRect)placeholderRectForBounds:(CGRect)bounds
{
    return CGRectMake(44, 0, CGRectGetWidth(bounds) - 44, CGRectGetHeight(bounds));
}

- (CGRect)textRectForBounds:(CGRect)bounds
{
    return CGRectMake(44, 0, CGRectGetWidth(bounds) - 44, CGRectGetHeight(bounds));
}
@end
